import java.util.Random;
import java.util.Scanner;

public class caishuzi {
    public static void main(String[] args) {

        //猜数字
        Random random = new Random();
        int re = random.nextInt(3)+1;
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入数字:");
        while (true) {
            int num = scanner.nextInt();
            if (num > re) {
                System.out.println("大了");
            } else if (num < re) {
                System.out.println("小了");
            } else {
                System.out.println("猜对了");
                break;
            }
        }
    }
}
